﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Core;
using System.Collections;

namespace Yuanlin.Business
{
    public class CommentRequest : TEntityRequest<Comment>
    {
        public CommentRequest()
        {
            int? entityId = GetParameterValue<int?>(YuanlinParameterName.CommentId);
            if (entityId.HasValue)
            {
                EntityId = entityId.Value;
            }
        }
    }
    public class CommentListRequest : TEntityListRequest<Comment>
    {
        private int? newsId = GetParameterValue<int?>(YuanlinParameterName.CommentId);
        private int? newsEntityType = GetParameterValue<int?>(YuanlinParameterName.NewsType);
        private int? state = GetParameterValue<int?>(YuanlinParameterName.State);

        public int? NewsId
        {
            get
            {
                return newsId;
            }
            set
            {
                newsId = value;
            }
        }
        public int? NewsEntityType
        {
            get
            {
                return newsEntityType;
            }
            set
            {
                newsEntityType = value;
            }
        }
        public int? State
        {
            get
            {
                return state;
            }
            set
            {
                state = value;
            }
        }
    }
    public class CommentReply : EntityReply
    {
    }
}